<?php 
get_header(); 

// To Show Banner and Title
get_template_part( 'inc/title-bar' ); 


?>

<!-- BEGINNING CONTENT -->        
<div id="content">
        
        <?php 
		// Include Breadcrumb Bar
		get_template_part( 'inc/breadcrumb-sharebar' ); 
		 ?>

		<!-- NEWS POST -->
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        
		<div class="post-wrapper" <?php post_class(); ?>>
                <div class="blog-head">  					                          
                        <?php 
                            if ( has_post_thumbnail() ) 
                            {								
                                ?>
                                    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                                        <?php the_post_thumbnail('blog-post-thumb');?>
                                    </a>
                                <?php
                            }
                        ?>

                        <h2 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> 
                        
                        <div class="post-meta">
                                <span class="date"><?php the_time('F j, Y'); ?></span>
                                
                                <span class="author"><?php the_author_posts_link(); ?></span>
                                
                                <span class="comments-count"><?php comments_popup_link( __('0 Comments','locality'), __('1 Comment','locality'), __('% Comments','locality') ); ?></span>
                                
                                <span class="categ"><?php the_category(', ') ?></span>
                                
                                <span class="tags"><?php the_tags( '', ', ', '' ); ?></span>
                        </div>	
                </div>
                <div class="post-data">
						<?php the_content(''); ?>
                        <a class="readpost-btn" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php _e('Read more','locality'); ?></a>
                </div>
        
        </div><!-- POST WRAPPER CLOSED-->
        <hr />
        <?php endwhile; ?>
        
		<?php else : ?>
			<div class="post-wrapper" <?php post_class(); ?>>
			        <div class="post-data">
						<p><?php _e( 'No Results Found !', 'locality') ?></p>
					</div>
	        </div>
		<?php endif; ?>
        
        
        <!-- POSTS PAGINATION-->
        <?php theme_pagination( $wp_query->max_num_pages); ?>
        
</div><!-- CLOSING CONTENT -->  

<!-- SIDEBAR blog -->
<?php get_sidebar('blog'); ?>

<!-- FOOTER -->  
<?php get_footer(); ?>